﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using bba.framework.infraweb.interfaces.infrastructure;
using bba.framework.infraweb.infrastructure.extensions;
using bba.framework.infraweb.entities;
using System.Text;
using bba.framework.infraweb.interfaces.controller;
using Microsoft.Practices.Unity;

namespace IBBAInfraWebCSharp1.Pages
{
    public partial class ErrorPage : System.Web.UI.Page
    {
        [Dependency]
        public IErrorPageController PageERROR { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            PageERROR.LoadPage(sendErrorDiv, Page.IsPostBack, userNameLabel, userHostNameLabel, systemNameLabel, pageErrorLabel, serverNameLabel, memoryLabel, memoryTotalLabel,
                idThreadLabel, cPUUsageLabel, stackTraceLabel, errorMensageLabel, sendErrorButton);
        }

        protected void sendErrorButton_Click(object sender, EventArgs e)
        {
            PageERROR.SendErrorAdministrator(sendErrorDiv, sendErrorButton, returnMessageLabel, userMessageTextBox);
        }

    }
}